// FileName : dictionary.h
// Definition of dictionary class
#ifndef DICTIONARY_H
#define DICTIONARY_H

#include <vector>
#include <string>

using namespace std;

class Dictionary {
	// Implement a dictionary
public:
	Dictionary() {
		// nothing to do	
	}

	~Dictionary() {
		// nothing to do
	}

	const string operator[]( string ) const;
	string& operator[]( string );

private:
	enum ListType {
		KEY,
		VALUE
	};

	
	int findPosition( string, ListType ) const;

	// Use two vector store the keys and values seperated
	vector<string> keys;
	vector<string> values;
};

#endif

// End of dictionary.h
